package org.lq.ht.service.impl;

import java.util.List;

import org.lq.ht.dao.impl.EmployeeDaoImpl;
import org.lq.ht.entity.Employee;
import org.lq.ht.service.EmployeeService;
/**员工业务层实现
 * @author 黄明慧
 * @package org.lq.ht.service.impl
 * @date 2020年8月21日下午7:38:45
 */
public class EmployeeServiceImpl implements EmployeeService<Employee>{
	private EmployeeDaoImpl edi = new EmployeeDaoImpl();
	@Override
	public boolean save(Employee e) {
		return edi.save(e)>0;
	}

	@Override
	public boolean update(Employee t) {
		return edi.update(t)>0;
	}

	@Override
	public boolean delete(int id) {
		return edi.delete(id)>0;
	}

	@Override
	public List<Employee> findAll() {
		return edi.findAll();
	}

	@Override
	public Employee getById(int id) {
		return edi.getById(id);
	}

}
